Ext.define("HRMobile.controller.HomeController", {
	extend : "Ext.app.Controller",
	config : {
		refs : {
			slfReport : '#slfReport',
			crsHomePanel : '#crsHomePanel'
		},
		control : {
			slfReport : {
				change : function(container, value, oldValue, eOpts) {
					this.getCrsHomePanel().setActiveItem(value);
				}
			},
			crsHomePanel : {
				activeitemchange : function(container, value, oldValue, eOpts) {
					this.getSlfReport().setValue(
							this.getCrsHomePanel().indexOf(value) - 3);
				}
			}
		}
	}

});
